Skip to content

[stable32] feat(files_versions): Auto-reload versions tab on file#57841

Open
silverkszlo wants to merge 1 commit intostable32from
fix/update-version-sidebar
Open

[stable32] feat(files_versions): Auto-reload versions tab on file#57841
silverkszlo wants to merge 1 commit intostable32from
fix/update-version-sidebar

Conversation

@silverkszlo
Copy link

@silverkszlo silverkszlo commented Jan 27, 2026

Summary

This PR adds automatic reloading of the versions sidebar tab when documents are saved, eliminating the need for manual refresh to see new versions. The feature listens to files:node:updated events.

Changes

  • Subscribe to files:node:updated events in VersionTab.vue in files_versions
  • Automatically reload versions list when the current file is saved
  • Add 1-second delay before fetching to allow server time to create new version entry

Testing

Tested on stable32 with Collabora Online:

  1. Open a document in Collabora
  2. Open versions sidebar tab
  3. Make changes and save (Ctrl+S)
  4. Versions list automatically updates after ~1 second
  5. New version appears without manual refresh

TODO

  • ...

Checklist

@silverkszlo silverkszlo force-pushed the fix/update-version-sidebar branch from 92a9d6e to a555926 Compare January 27, 2026 12:17
@AndyScherzinger AndyScherzinger added the 3. to review Waiting for reviews label Jan 29, 2026
@AndyScherzinger AndyScherzinger added this to the Nextcloud 32.0.6 milestone Jan 29, 2026
Listen for files:node:updated events and automatically refresh the
versions list when the current file is saved, eliminating the need to
manually close and reopen the sidebar to see new versions.

Signed-off-by: silver <s.szmajduch@posteo.de>
@silverkszlo silverkszlo force-pushed the fix/update-version-sidebar branch from 0c9a8c2 to ad88072 Compare February 9, 2026 14:21
@silverkszlo silverkszlo marked this pull request as ready for review February 9, 2026 18:59
@silverkszlo silverkszlo requested a review from a team as a code owner February 9, 2026 18:59
@silverkszlo silverkszlo requested review from blizzz, nfebe, sorbaugh and susnux and removed request for a team February 9, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants